package com.yu.crm.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 考勤设置表
 * </p>
 *
 * @author ct
 * @since 2019-12-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AttendanceSet implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 用户id
     */
    @TableField("user_id")
    private String userId;

    /**
     * 部门id
     */
    @TableField("department_id")
    private String departmentId;

    /**
     * 考勤设置开始日期
     */
    @TableField("attendance_start_date")
    private String attendanceStartDate;

    /**
     * 考勤设置结束日期
     */
    @TableField("attendance_end_date")
    private String attendanceEndDate;

    /**
     * 考勤设置开始时间(上午)
     */
    @TableField("attendance_am_start_time")
    private String attendanceAmStartTime;

    /**
     * 考勤设置结束时间(上午)
     */
    @TableField("attendance_am_end_time")
    private String attendanceAmEndTime;

    /**
     * 考勤设置开始时间(下午)
     */
    @TableField("attendance_pm_start_time")
    private String attendancePmStartTime;

    /**
     * 考勤设置结束时间(下午)
     */
    @TableField("attendance_pm_end_time")
    private String attendancePmEndTime;

    /**
     * 创建时间
     */
    @TableField("gmt_create")
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    @TableField("gmt_modified")
    private LocalDateTime gmtModified;

    /**
     * 是否已删除 yes_no
     */
    @TableField("is_deleted")
    private Integer isDeleted;

    /**
     * 部门名称
     */
    @TableField(exist = false)
    private String departmentName;


}
